//
//  MapManager.h
//  PigMarket
//
//  Created by mac on 2019/5/20.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^LocationResultBlock)(double latitude, double longitude);
typedef void (^LocationNameBlock)(NSString *location,double latitude, double longitude );
typedef void (^LocationSearchResultBlock)(NSArray *locations);

@interface LocationManager : NSObject

+ (instancetype)sharedManager;
- (void)startLocation;

@property (nonatomic ,copy) LocationResultBlock locationResultBlock;
@property (nonatomic ,copy) LocationNameBlock locationNameBlock;
@property (nonatomic ,copy) LocationSearchResultBlock locationSearchBlock;

#pragma mark - AMapSearchAPI
- (void)manageSearchNearByLocation;

- (void)startLocationCompleteBlock:(void(^)(double latitude, double longitude))completeBlock;


@end

